exports.init = function (app) {
  // 创建学生
  app.post('/net/schooladmin/school-student/create', function (req, res) {
    res.send({
      "errcode": "0",
      "errmsg": "ok"
    });
  });

  // 更新学生
  app.post('/net/schooladmin/school-student/update', function (req, res) {
    res.send({
      "errcode": "0",
      "errmsg": "ok"
    });
  });

  // 学生详情
  app.get('/net/schooladmin/school-student/get', function (req, res) {
    res.send({
      "errcode": "0",
      "errmsg": "ok",
      "data": {
        "id": 130,
        "merchantId": 1,
        "schoolId": 1,
        "classId": 2,
        "className": "二班",
        "classGradeYear": 2017,
        "name": "王小五",
        "sex": 1,
        "birth": 968461749,
        "idType": 0,
        "cardNo": "430981199311114697",
        "infoNo": "123456789003",
        "guardian": "王五",
        "mobile": "18938888887",
        "gradeYear": 2017,
        "graduateYear": 2019,
        "province": 0,
        "city": 0,
        "county": 0,
        "address": "科研路比克大厦",
        "isEnroll": 0,
        "enrollTime": 0,
        "created": 1508209011,
        "modified": 1508220862,
        "deleted": 0
      }
    });
  });

  // 删除学生
  app.post('/net/schooladmin/school-student/del', function (req, res) {
    res.send({
      "errcode": "0",
      "errmsg": "ok"
    });
  });

  // 学生退学
  app.post('/net/schooladmin/school-student/drop-out', function (req, res) {
    res.send({
      "errcode": "0",
      "errmsg": "ok"
    });
  });

  // 班级列表
  app.post('/net/schooladmin/school-class/find-class-list-by-grade', function (req, res) {
    res.send({
      "errcode": "0",
      "errmsg": "ok",
      "data": [{
          "id": 1,
          "name": "一班"
        },
        {
          "id": 2,
          "name": "二班"
        },
        {
          "id": 3,
          "name": "class 3"
        }
      ]
    });
  });

  // 学生列表
  app.post('/net/schooladmin/school-student/find', function (req, res) {
    res.send({
      "errcode": "0",
      "errmsg": "ok",
      "data": [{
          "id": 148,
          "merchantId": 1,
          "schoolId": 1,
          "classId": 1,
          "className": "一班",
          "classGradeYear": 2017,
          "name": "王小五dd",
          "sex": 1,
          "birth": 968461749,
          "idType": 1,
          "cardNo": "430981199311114697",
          "infoNo": "123456789003",
          "guardian": "王五",
          "mobile": "18938888887",
          "gradeYear": 2017,
          "graduateYear": 2019,
          "province": 440000,
          "city": 440300,
          "county": 440305,
          "address": "科研路比克大厦",
          "isEnroll": 0,
          "enrollTime": 0,
          "created": 1508468069,
          "modified": 1508468879,
          "deleted": 0,
          "modified": 1508468069,
          "remark": "就是不想读书了"
        },
        {
          "id": 135,
          "merchantId": 1,
          "schoolId": 1,
          "classId": 2,
          "className": "二班",
          "classGradeYear": 2017,
          "name": "张三三",
          "sex": 1,
          "birth": 915148800,
          "idType": 1,
          "cardNo": "ZJH001",
          "infoNo": "XH001",
          "guardian": "张三",
          "mobile": "18938888062",
          "gradeYear": 2016,
          "graduateYear": 2019,
          "province": 0,
          "city": 0,
          "county": 0,
          "address": "比克大厦101",
          "isEnroll": 0,
          "enrollTime": 0,
          "created": 0,
          "deleted": 0,
          "modified": 1508468069,
          "remark": "就是不想读书了"
        },
        {
          "id": 136,
          "merchantId": 1,
          "schoolId": 1,
          "classId": 3,
          "className": "三班",
          "classGradeYear": 2016,
          "name": "李四四",
          "sex": 1,
          "birth": 894412800,
          "idType": 1,
          "cardNo": "ZJH002",
          "infoNo": "XH002",
          "guardian": "李四",
          "mobile": "18938888063",
          "gradeYear": 2017,
          "graduateYear": 2019,
          "province": 0,
          "city": 0,
          "county": 0,
          "address": "比克大厦102",
          "isEnroll": 0,
          "enrollTime": 0,
          "created": 0,
          "deleted": 0,
          "modified": 1508468069,
          "remark": "就是不想读书了"
        },
        {
          "id": 137,
          "merchantId": 1,
          "schoolId": 1,
          "classId": 4,
          "className": "四班",
          "classGradeYear": 2017,
          "name": "王五五",
          "sex": 2,
          "birth": 839548800,
          "idType": 2,
          "cardNo": "ZJH003",
          "infoNo": "XH003",
          "guardian": "王五",
          "mobile": "18938888064",
          "gradeYear": 2017,
          "graduateYear": 2019,
          "province": 0,
          "city": 0,
          "county": 0,
          "address": "比克大厦103",
          "isEnroll": 0,
          "enrollTime": 0,
          "created": 0,
          "deleted": 0,
          "modified": 1508468069,
          "remark": "就是不想读书了"
        }
      ],
      "page": {
        "currentPage": 1,
        "currentCount": 4,
        "totalCount": 11,
        "totalPage": 3
      }
    });
  });

  // 学生录取
  app.post('/net/schooladmin/school-student/enroll', function (req, res) {
    res.send({
      "errcode": "0",
      "errmsg": "ok"
    });
  });

  // 年级列表
  app.get('/net/schooladmin/school-class/find-grade-list', function (req, res) {
    res.send({
      "errcode": "0",
      "errmsg": "ok",
      "data": [
        2015,
        2016,
        2017
      ]
    })
  })

  // 调班
  app.post('/net/schooladmin/school-student/change-class', function (req, res) {
    res.send({
      "errcode": "0",
      "errmsg": "ok"
    });
  });

  // 获取学校及签约信息
  app.get('/net/schooladmin/school/get-school-and-csi', function (req, res) {
    res.send({
      "errcode": "0",
      "errmsg": "ok",
      "data": {
        "school": {
          "id": 1,
          "schoolName": "阳光幼儿园",
          "schoolLogo": "https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=3424226810,3788025634&fm=27&gp=0.jpg",
          "schoolAddress": "测试地址",
          "schoolLevel": "幼儿园",
          "linkMan": "阳光",
          "linkMobile": "18938888061"
        },
        "settings": {
          "bankOpenUser": "阳光",
          "bank": "农行",
          "corporateAccount": "123456789",
          "rate": "0.123000"
        }
      }
    });
  });

  // 缴费详情列表
  app.post('/net/schooladmin/school/payment-info', function (req, res) {
    res.send({
      "errcode": "0",
      "errmsg": "ok",
      "data": [{
          "id": 172,
          "schoolPaymentSkuName": "2017秋季学费",
          "shouldPay": 33,
          "payMethods": 2,
          "orderDetail": [{
            "id": 72,
            "orderNo": "011200002017112014262631674",
            "price": 2,
            "payTime": 1511159196,
            "userName": "好安静1"
          }, {
            "id": 72,
            "orderNo": "011200002017112014262631674",
            "price": 3,
            "payTime": 1511159196,
            "userName": "好安静2"
          }, {
            "id": 72,
            "orderNo": "011200002017112014262631674",
            "price": 6,
            "payTime": 1503158400,
            "userName": "好安3"
          }],
          discountInfo: [{
              reason: '长得帅减免',
              num: 1000,
              offType: 1
            },
            {
              reason: '就是要给你减免',
              num: 200,
              offType: 1
            }
          ]
        },
        {
          "id": 171,
          "schoolPaymentSkuName": "2017秋季学费",
          "shouldPay": 33,
          "payMethods": 2,
          "orderDetail": [{
            "id": 72,
            "orderNo": "011200002017112014262631674",
            "price": 2,
            "payTime": 1511159196,
            "userName": "好安静1"
          }, {
            "id": 72,
            "orderNo": "011200002017112014262631674",
            "price": 3,
            "payTime": 1511159196,
            "userName": "好安静2"
          }, {
            "id": 72,
            "orderNo": "011200002017112014262631674",
            "price": 6,
            "payTime": 1503158400,
            "userName": "好安3"
          }],
          discountList: [{
              reason: '政府减免',
              num: 1000,
              offType: 1
            },
            {
              reason: '政府减免2',
              num: 200,
              offType: 1
            }
          ]
        },
        {
          "id": 172,
          "schoolPaymentSkuName": "2017秋季学费",
          "shouldPay": 33,
          "payMethods": 1,
          "orderDetail": [{
            "id": 72,
            "orderNo": "011200002017112014262631674",
            "price": 2,
            "payTime": 1511159196,
            "userName": "好安静1"
          }]
        }
      ]
    });
  });

  // 复学
  app.post('/net/schooladmin/school-student/return-school', function (req, res) {
    res.send({
      "errcode": "0",
      "errmsg": "ok",
      "data": [
        0
      ]
    });
  })
}
